﻿//
// Created by Grishul Eugeny
//
// See license in License.txt
//

using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using System.Text.RegularExpressions;

namespace NCommander
{
	static class Program
	{
		/// <summary>
		/// The main entry point for the application.
		/// </summary>
		[STAThread]
		static void Main()
		{
			Application.EnableVisualStyles();
			Application.SetCompatibleTextRenderingDefault( false );
			//Application.ThreadException += new System.Threading.ThreadExceptionEventHandler( Application_ThreadException );
			//AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler( CurrentDomain_UnhandledException );
			Application.Run( new MainForm() );
		}

		static void CurrentDomain_UnhandledException( object sender, UnhandledExceptionEventArgs e )
		{
			MessageBox.Show( e.ExceptionObject.ToString(), "Unhandled exception!" );
		}

		static void Application_ThreadException( object sender, System.Threading.ThreadExceptionEventArgs e )
		{
			MessageBox.Show( e.Exception.ToString(), "Unhandled exception!" );
		}
	}
}
